<?php $this->load->view('header');?>

<body class="childrenBody custom_body">
	<div class="custom_main">
		<fieldset class="layui-elem-field layui-field-title">
		  <legend>文章信息</legend>
		</fieldset>

		<form class="layui-form" action="<?php echo site_url('SysConfig/save');?>" method="post">
			<?php foreach($list as $val):?>
			<div class="layui-form-item">
				<label class="layui-form-label custom_i" style="width:120px;"><i>*</i> <?php echo !empty($val['title'])?$val['title']:$val['name'];?>：</label>
				<div class="layui-input-block">
					<input type="text" name="f[<?php echo $val['name'];?>]" class="layui-input" value="<?php echo $val['info'];?>" style="width:300px;display: inline-block;">
					<div style="display:inline;"><?php echo $val['remarks'];?></div>
				</div> 
			</div>
			<?php endforeach;?>
			

			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn layui-btn-normal" type="submit">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			    </div>
			</div>
		</form>
		
	</div>

	<script type="text/javascript">
		layui.config({
			version: true
		}).use(['jquery','layer', 'form', 'laytpl', 'upload', 'layedit'],function(){
			var form = layui.form,
				layer = parent.layer === undefined ? layui.layer : parent.layer,
				laypage = layui.laypage,
				laytpl = layui.laytpl,
				upload = layui.upload,
				layedit = layui.layedit,
				$ = layui.jquery;


				form.render(); //更新全部

		});

	</script>

</body>
</html>